package com.zt.ztyh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zt.ztyh.pojo.Occupation;
import com.zt.ztyh.service.OccupationService;
import com.zt.ztyh.mapper.OccupationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 卫相阳
* @description 针对表【ztyh_occupation】的数据库操作Service实现
* @createDate 2024-04-02 18:47:30
*/
@Service
public class OccupationServiceImpl extends ServiceImpl<OccupationMapper, Occupation>
    implements OccupationService{

    @Autowired
    OccupationMapper occupationMapper;
    @Override
    public Occupation byId(Long id) {
        Occupation occupation = occupationMapper.byId(id);
        return occupation;
    }
}




